package edu.yctc.manage.controller;

import edu.yctc.manage.constant.RequestAttributes;
import edu.yctc.manage.constant.TemplatePath;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName AdminController
 * @Description 管理页跳转器
 * @Author zyj
 * @Date 2021/3/29 17:22
 * @Version 1.0
 **/
@Controller
public class AdminController {

    @GetMapping(TemplatePath.S + TemplatePath.ADMIN_STUDENT)
    public String showStudentManage(HttpServletRequest request) {
        request.setAttribute(RequestAttributes.PATH, RequestAttributes.VALUE_STUDENT);
        return TemplatePath.ADMIN_STUDENT;
    }

}
    